const singleElement = (fn)=>{
    let result;
    return function(...rest){
        return result || (result = fn.apply(this,rest));
    }
}
export default singleElement;